/**************************************************************************** **
 * Copyright (C) 2001-2020 Inhand Networks, Inc.
 **************************************************************************** **/

/* ************************************************************************** **
 *     MODULE NAME            : system
 *     LANGUAGE               : C
 *     TARGET ENVIRONMENT     : Any
 *     FILE NAME              : test.c
 *     FIRST CREATION DATE    : 2022/05/08
 * --------------------------------------------------------------------------
 *     Version                : 1.0
 *     Author                 : EExuke
 *     Last Change            : 2022/05/08
 *     FILE DESCRIPTION       :
** ************************************************************************** */

#include "/home/xuke/bin/dbg.h"
#include <stdio.h>
#include <stdlib.h>
#include "tree.h"
#include "atom.h"


static int test_apis_for_tree()
{
	Tree ptree;

	InitializeTree(&ptree);

	return 0;
}

static int test_apis_for_atom()
{
	char buf[] = "atom string";
	int linenum = 4;

	const char *word = Atom_string(buf);
	const char *line = Atom_int(linenum);

	return 0;
}

/****************************************************************************
 *  Function Name : main
 *  Description   : The Main Function.
 *  Input(s)      : argc - The numbers of input value.
 *                : argv - The pointer to input specific parameters.
 *  Output(s)     : NULL
 *  Returns       : 0
 ****************************************************************************/
int main(int argc, const char *argv[])
{
	my_debug_msg("test tree APIs:");
	if (test_apis_for_tree()) {
		my_debug_red_msg("tree test failed.");
	} else {
		my_debug_red_msg("tree test ok.");
	}

	my_debug_msg("test atom APIs:");
	if (test_apis_for_atom()) {
		my_debug_red_msg("atom test failed.");
	} else {
		my_debug_red_msg("atom test ok.");
	}

	return 0;
}

